Revert "csd: Drop the GTK_FRAME_EXTENTS requirement"
authorMatthias Clasen <mclasen@redhat.com>
Tue, 10 Mar 2015 00:48:47 +0000 (20:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 10 Mar 2015 00:48:47 +0000 (20:48 -0400)
This reverts commit fb9a6bb6d8d6b60b25c9b9853decbcea938f7863.

In a recent test, I've found that Xfce and Mate now support
this, so they will not be affected by this requirement. And
adding the check back will solve the 'client-side shadow'
problem in KDE.

gtk/gtkwindow.c

index c4196980db72bc30c8b454a6e6c67bac85ea9f97..7dee0dfc4147233f694270f4d59e7066d6ee4faa 100644 (file)
@@ -3955,6 +3955,9 @@ gtk_window_supports_csd (GtkWindow *window)
       if (!gdk_screen_is_composited (screen))
         return FALSE;
 
+      if (!gdk_x11_screen_supports_net_wm_hint (screen, gdk_atom_intern_static_string ("_GTK_FRAME_EXTENTS")))
+        return FALSE;
+
       /* We need a visual with alpha */
       visual = gdk_screen_get_rgba_visual (screen);
       if (!visual)